package com.anyisn.anyflickr.shell.model.sqlite
{
	import com.memamsa.airdb.DB;
	import com.memamsa.airdb.Migrator;
	import com.memamsa.airdb.Modeler;

	[Association(type="has_and_belongs_to_many", name="people", className="com.anyisn.anyflickr.shell.model.sqlite.Person")]
	
	dynamic public class Tag extends Modeler
	{
		private static const migrations:Migrator = new Migrator(
			Tag,
			{id: true},
			[
				function(my:Migrator):void {
					my.createTable(function():void {
						my.column('name', DB.Field.VarChar, {limit: 128});
						my.columnTimestamps();
					});
				}/*,
				
				function(my:Migrator):void {
					my.joinTable(Tag);
				}*/
			]
		);
	}
}